From 13f6cd5143e7ab44c09cf22962999662ccab7b5d Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Mon, 6 Sep 2010 08:35:03 +0200 Subject: [PATCH] babl: Decrease scope of create_name() buffer --- babl/babl-fish-reference.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/babl/babl-fish-reference.c b/babl/babl-fish-reference.c index 5fbc837..fa47ea9 100644 --- a/babl/babl-fish-reference.c +++ b/babl/babl-fish-reference.c @@ -30,12 +30,13 @@ assert_conversion_find (void *source, return ret; } -static char buf[1024]; static char * create_name (const Babl *source, const Babl *destination, int is_reference) { + static char buf[1024]; + /* fish names are intentionally kept short */ snprintf (buf, 1024, "%s %p %p", is_reference ? "ref " -- 2.30.2